package com.example.javabasic.jvm;

import sun.misc.Launcher;

import java.net.URL;
import java.sql.DriverManager;
public class ClassLoader {
    public static void main(String[] args) {
        URL[] urLs = Launcher.getBootstrapClassPath().getURLs();
        System.out.println("启动类加载器路径");
        for (URL urL : urLs) {
            System.out.println(urL);
        }
        System.out.println("扩展类加载器路径");
        String property = System.getProperty("java.ext.dirs");
        for (String s : property.split(";")) {
            System.out.println(s);
        }
        System.out.println("获取系统类加载器");
        java.lang.ClassLoader systemClassLoader = java.lang.ClassLoader.getSystemClassLoader();

    }
}
